package com.iot.ammeter.dto.web.degree;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @ClassName: DegreeDetailDTO
 * @Author: Basil
 * @Date: 2022/5/1 4:15 PM
 * @Version: 1.0
 * @Description:
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DegreeDetailDTO {
    private String campusName;
    private Double degree;
    private Integer month;
    private LocalDateTime time;

    @JsonIgnore
    public Integer getDay(){
        return this.time.getDayOfMonth();
    }
}
